#ifndef __AHUPROC_H__
#define __AHUPROC_H__

#include "es_print.h"
#include "ahudata.h"
#include <string.h>
#include <mosquitto.h>
#include <json-c/json_util.h>
#include <json-c/json.h>

#define LOCAL_CONF_DIR   "./localconf"

void ahu_mqtt_cmd_msg_proc(char *msg, char *topic);
void ahu_mqtt_msg_proc(char *msg);
void add_dev_from_local();
enum error_code ahu_mqtt_cmd_adddevice(struct json_object *jroot);

#endif //__AHUPROC_H__